package cn.firstquestion;

public class Cat extends Animal{
    private String eatLike;

    public Cat(){

    }

    public Cat(String name, String eatLike) {
        super(name);
        this.eatLike = eatLike;
    }

    public String getEatLike() {
        return eatLike;
    }

    public void setEatLike(String eatLike) {
        this.eatLike = eatLike;
    }

    public void eat(){
        System.out.println(super.getName()+"喜欢吃"+getEatLike());

    }
}
